import Vue from 'vue'
import Vuex from 'vuex'

import vuxLoading from './module/vux'
import user from './module/user'
import article from './module/article'


Vue.use(Vuex);

const store = new Vuex.Store({
    // getters: {
    //     token: state => state.user.token
    // },
    modules: {
        vuxLoading,
        user,
        article
    }
})

export default store